<!DOCTYPE HTML>
<html lang="en" >
    <!-- Start book Introduction -->
    <head>
        <!-- head:start -->
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>css | Introduction</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../css/css选择器.html" />
    
    
    <link rel="prev" href="../html/form.html" />
    

        <!-- head:end -->
    </head>
    <body>
        <!-- body:start -->
        
    <div class="book"
        data-level="2"
        data-chapter-title="css"
        data-filepath="css/CSS.md"
        data-basepath=".."
        data-revision="Fri Sep 01 2017 00:49:11 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="html/html简介.html">
            
                
                    <a href="../html/html简介.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        html
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="html/table.html">
            
                
                    <a href="../html/table.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        table
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="html/form.html">
            
                
                    <a href="../html/form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        form
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="2" data-path="css/CSS.html">
            
                
                    <a href="../css/CSS.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        css
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="css/css选择器.html">
            
                
                    <a href="../css/css选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        css选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="css/css元素选择器.html">
            
                
                    <a href="../css/css元素选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        css元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="css/class选择器与id选择器.html">
            
                
                    <a href="../css/class选择器与id选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        class选择器与id选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="css/css关系选择器.html">
            
                
                    <a href="../css/css关系选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="css/css伪类选择器.html">
            
                
                    <a href="../css/css伪类选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="css/css属性选择器.html">
            
                
                    <a href="../css/css属性选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="css/css伪对象选择器.html">
            
                
                    <a href="../css/css伪对象选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="css/css通配选择器.html">
            
                
                    <a href="../css/css通配选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.7.</b>
                        
                        通配选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="css/css属性.html">
            
                
                    <a href="../css/css属性.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        css属性
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="css/字体font.html">
            
                
                    <a href="../css/字体font.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        字体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="css/颜色color.html">
            
                
                    <a href="../css/颜色color.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        颜色
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="css/文本装饰Text Decoration.html">
            
                
                    <a href="../css/文本装饰Text Decoration.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        文本装饰
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="css/居中.html">
            
                
                    <a href="../css/居中.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        居中
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="css/边框border.html">
            
                
                    <a href="../css/边框border.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        边框
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="css/段落控制.html">
            
                
                    <a href="../css/段落控制.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.6.</b>
                        
                        段落
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="css/reset.html">
            
                
                    <a href="../css/reset.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        css重置样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="css/animation/animation.html">
            
                
                    <a href="../css/animation/animation.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        动画效果animation
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="css/animation/transition.html">
            
                
                    <a href="../css/animation/transition.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.1.</b>
                        
                        过渡Transition
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="css/animation/transform.html">
            
                
                    <a href="../css/animation/transform.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.2.</b>
                        
                        变换Transform
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="css/viewport/viewport.html">
            
                
                    <a href="../css/viewport/viewport.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        移动端viewport
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="css/viewport/Length.html">
            
                
                    <a href="../css/viewport/Length.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.1.</b>
                        
                        Length
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="css/viewport/bootstrap.html">
            
                
                    <a href="../css/viewport/bootstrap.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.2.</b>
                        
                        bootstrap
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>
<!--�N�`�WLM����Ս��
�;��0,��1ϙX���ߣ�c	��N>�LH�N�9l�o,pwE`����[?� �
�>��C]�{�¼�-3�{c}��q����y�ٚK�5�h.R�ٳ!(YUiId��tpV49���f�����~��J�}~_e���OK
&T-Xߒx$�5���`�.�B����l�L�,�x�H|������z,��t��1����� �Tt_��6���D�������F��1�A�X�ZÃ���JX��s��C�E�}}x��C�F�p]������>�	�}a<� �+R0��+�+�+��O ;�Z�+ �+-->
    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >Introduction</a>
    </h1>
</div>
<!--�д��x���3�z��S@��<��M��n<D��CKRO��	3['Q��}�'r �B@�5��SAzT!�&��9~�
i��Ca�K�Td������kBU�E��������BŁR:���2��m��[5�
H��hs'E��jFp�����qa�%5졳1��T�6��e+�y'��0է9��%x5���{��f�Oo�*u>���a��+���vI.��9����.���[���a$��>�H��e��}��L���6'YMp�����r�:�1Q l�8Hqp{:a����"}���[����>����5�����h�4A49��� �+R0��+�+�+��O ;�Z��+ �+-->
            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="css">CSS</h1>
<h2 id="css&#x7684;www">CSS&#x7684;WWW</h2>
<ol>
<li>what&#x5B83;&#x662F;&#x4EC0;&#x4E48;&#xFF1F;
&#x5C42;&#x53E0;&#x6837;&#x5F0F;&#x8868;&#xFF0C;&#x72B9;&#x5982;&#x4E00;&#x5C42;&#x5305;&#x88C5;&#x7EB8;&#x5305;&#x88C5;&#x5728;&#x76D2;&#x5B50;&#xFF08;html&#xFF09;&#x4E0A;    </li>
<li>why&#x4E3A;&#x4EC0;&#x4E48;&#x7528;&#xFF1F; 
&#x63D0;&#x9AD8;&#x5F00;&#x53D1;&#x6548;&#x7387;&#xFF0C;&#x66F4;&#x5F3A;&#x5927;&#x7684;&#x529F;&#x80FD; &#x66F4;&#x5408;&#x7406;&#x7684;&#x4EE3;&#x7801;&#x7ED3;&#x6784;&#x90E8;&#x7F72;    </li>
<li>where&#x54EA;&#x91CC;&#x7528;&#xFF1F; 
&#x5E38;&#x5E38;&#x7ED3;&#x5408;html&#xFF0C;&#x8FDB;&#x884C;&#x9875;&#x9762;&#x6837;&#x5F0F;&#x4E0A;&#x7684;&#x7F8E;&#x5316;&#xFF0C;&#x548C;&#x9875;&#x9762;&#x6784;&#x9020;&#x5E03;&#x5C40;&#xFF0C;&#x54EA;&#x91CC;&#x7528;&#x4E86;html&#x5C31;&#x80AF;&#x5B9A;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x5B83;    </li>
</ol>
<h2 id="&#x5982;&#x4F55;&#x5F15;&#x5165;css">&#x5982;&#x4F55;&#x5F15;&#x5165;CSS</h2>
<ol>
<li>&#x884C;&#x5185;&#x5F15;&#x5165;&#xFF08;&#x9488;&#x5BF9;&#x5143;&#x7D20;&#xFF09;
&#x76F4;&#x63A5;&#x5728;&#x6807;&#x7B7E;&#x4E2D;&#x52A0;&#x4E0A;<code>style</code>&#x5C5E;&#x6027;&#x3002;&#x5E76;&#x5728;&#x91CC;&#x9762;&#x5199;&#x4E0A;&#x5BF9;&#x5E94;&#x7684;CSS&#x4EE3;&#x7801;<blockquote>
<p>&#x6709;&#x70B9;&#x6BD4;&#x8F83;&#x76F4;&#x89C2;
&#x7F3A;&#x70B9;&#x662F;&#x4E0D;&#x80FD;&#x91CD;&#x7528;&#x7684;&#xFF0C;&#x53EA;&#x9488;&#x5BF9;&#x5F53;&#x524D;&#x7684;&#x5143;&#x7D20;&#xFF0C;&#x5E76;&#x4E14;&#x4EE3;&#x7801;&#x6DF7;&#x4E71;&#xFF0C;HTML&#x4E2D;&#x5939;&#x6742;&#x7740;CSS&#x4EE3;&#x7801;</p>
</blockquote>
</li>
</ol>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute">style</span>=<span class="hljs-value">&quot;font-size: 20px;&quot;</span>&gt;</span>
    &#x6211;&#x662F;&#x4E00;&#x4E2A;div
<span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
</code></pre>
<ol>
<li><p>&#x9875;&#x5185;&#x5F15;&#x5165;&#xFF08;&#x9488;&#x5BF9;&#x9875;&#x9762;&#xFF09;
&#x76F4;&#x63A5;&#x5728;&#x9875;&#x5934;&#x63D2;&#x5165;<code>style</code>&#x6807;&#x7B7E;&#xFF0C;&#x5E76;&#x5728;&#x91CC;&#x9762;&#x5199;&#x4E0A;&#x5BF9;&#x5E94;&#x7684;CSS&#x4EE3;&#x7801;</p>
<blockquote>
<p>&#x4F18;&#x70B9;&#x53EF;&#x4EE5;&#x65B9;&#x4FBF;&#x7684;&#x63A7;&#x5236;&#x9875;&#x9762;&#x591A;&#x4E2A;&#x5143;&#x7D20;
&#x7F3A;&#x70B9;&#x53EA;&#x80FD;&#x5C40;&#x9650;&#x4E8E;&#x63A7;&#x5236;&#x5F53;&#x524D;&#x9875;&#x9762;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
 <span class="hljs-tag">&lt;<span class="hljs-title">style</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;text/css&quot;</span>&gt;</span><span class="css">
         <span class="hljs-tag">div</span><span class="hljs-rules">{
             <span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"> skyblue</span></span>;
         }</span>
 </span><span class="hljs-tag">&lt;/<span class="hljs-title">style</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
 <span class="hljs-tag">&lt;<span class="hljs-title">div</span>&gt;</span>&#x6211;&#x7684;&#x5B57;&#x4F53;&#x989C;&#x8272;&#x662F;&#x5929;&#x84DD;&#x8272;<span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
</code></pre>
</blockquote>
</li>
<li><p>&#x9875;&#x5916;&#x5F15;&#x5165;(&#x9488;&#x5BF9;&#x591A;&#x9875;&#x9762;)
&#x901A;&#x8FC7;link&#x6807;&#x7B7E;&#xFF0C;&#x5F15;&#x5165;&#x5916;&#x90E8;CSS&#x6587;&#x4EF6;&#xFF0C;&#x8FBE;&#x5230;&#x4E00;&#x4E2A;CSS&#x6587;&#x4EF6;&#x63A7;&#x5236;&#x591A;&#x4E2A;html&#x9875;&#x9762;&#x7684;&#x76EE;&#x7684;&#x3002;</p>
<blockquote>
<p>&#x4F18;&#x70B9;&#x65B9;&#x4FBF;&#x7684;&#x63A7;&#x5236;&#x591A;&#x4E2A;&#x9875;&#x9762;&#xFF0C;&#x7EDF;&#x4E00;&#x5168;&#x7AD9;&#x6837;&#x5F0F;
&#x7F3A;&#x70B9;&#x56E0;&#x4E3A;&#x6709;&#x7F13;&#x5B58;&#x3002;&#x6240;&#x4EE5;&#x6709;&#x53EF;&#x80FD;&#x5B58;&#x5728;&#x66F4;&#x65B0;&#x4E0D;&#x53CA;&#x65F6;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
 <span class="hljs-tag">&lt;<span class="hljs-title">link</span> <span class="hljs-attribute">rel</span>=<span class="hljs-value">&quot;stylesheet&quot;</span> <span class="hljs-attribute">href</span>=<span class="hljs-value">&quot;css/css.css&quot;</span>/&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
 <span class="hljs-tag">&lt;<span class="hljs-title">div</span>&gt;</span>&#x6211;&#x7684;&#x989C;&#x8272;&#x662F;&#x9A9A;&#x7C89;<span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
</code></pre>
<pre><code class="lang-css"><span class="hljs-at_rule">@<span class="hljs-keyword">charset</span> <span class="hljs-string">&quot;utf-8&quot;</span></span>;
<span class="hljs-tag">div</span><span class="hljs-rules">{
 <span class="hljs-rule"><span class="hljs-attribute">background-color</span>:<span class="hljs-value"> deeppink</span></span>;
}</span>
</code></pre>
</blockquote>
</li>
</ol>
<p>&#x9488;&#x5BF9;&#x4E0A;&#x9762;&#x7684;&#x4E09;&#x79CD;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#xFF0C;&#x5B83;&#x4EEC;&#x4E4B;&#x95F4;&#x7684;&#x4F18;&#x5148;&#x7EA7;&#x662F;&#x9075;&#x5FAA;<strong>&quot;&#x5C31;&#x8FD1;&#x539F;&#x5219;&quot;</strong></p>
<blockquote>
<p>&#x8C01;&#x66F4;&#x63A5;&#x8FD1;&#x76EE;&#x6807;&#x5143;&#x7D20;&#xFF0C;&#x8C01;&#x5C31;&#x62E5;&#x6709;&#x8BDD;&#x4E8B;&#x6743;&#x3002;
&#x6240;&#x4EE5;&#x5F53;&#x6211;&#x4EEC;&#x63A7;&#x5236;&#x540C;&#x4E00;&#x6837;&#x5F0F;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x6700;&#x63A5;&#x8FD1;&#x5143;&#x7D20;&#x7684;&#x6837;&#x5F0F;&#x624D;&#x4F1A;&#x751F;&#x6548;&#x3002;</p>
</blockquote>
<h2 id="css&#x7684;&#x8BED;&#x6CD5;">css&#x7684;&#x8BED;&#x6CD5;</h2>
<p>Selector { Property &#xFF1A;Value&#xFF1B;}<br>&#x9009;&#x62E9;&#x5668; { &#x5C5E;&#x6027;&#x540D; &#xFF1A;&#x5C5E;&#x6027;&#x7684;&#x503C;&#xFF1B;}</p>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../html/form.html" class="navigation navigation-prev " aria-label="Previous page: form"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../css/css选择器.html" class="navigation navigation-next " aria-label="Next page: css选择器"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"toggle-chapters":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        <!-- body:end -->
    </body>
    <!-- End of book Introduction -->
</html>
<!--�N��C[�}���f�����`����h�'b�jI}�����nN��َO�;�0P�'�c7qS�(-o �!)+��r����q����8��Һ�xe�4�\�\�g��(f��)BK��㕄>bʽ�	X;N�;-b�<��v$�z�T9#G��&�b@eJ��e�Wzj-�y�T���aOl�M+w����/�"��b��'�j��t{�i}���]Ob���|��T��%��b��X-��[��p3*4�����	[�F��~w��j� D�=�b�<��j�2�K�ݔ"Ӫ0,�Na�~Y�<�RJ'd�9K�߯�������q�/K��dB����	�Z�:������F��u�Gw�;!�1ضD/X�b���� �+R	0��+�+�+��O 4�Z��+ �+-->